package com.logic.modular.game.battle.panel.skillEffect.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BaseEffectValueInfo implements Cloneable{
    @ApiModelProperty("是否为增益 0:减益 1:增益")
    private Integer isBenefit;
    @ApiModelProperty("每次触发的基础数值")
    private Double resDoubleValue1;
    @ApiModelProperty("每次触发的基础数值")
    private Double resIntegerValue1;

    @ApiModelProperty("每次触发的衰弱数值")
    private Double resDoubleValue2;
    @ApiModelProperty("每次触发的衰弱数值")
    private Double resIntegerValue2;

    @ApiModelProperty("基础面板值")
    private Double baseValue;
    @ApiModelProperty("触发数值")
    private Double triggerValue;
    @ApiModelProperty("衰弱数值")
    private Double decayValue;

    @ApiModelProperty("叠层上限")
    private Integer layerMax;

    @ApiModelProperty("叠加上限")
    private Integer baseValueMax;


    @Override
    public BaseEffectValueInfo clone() {
        try {
            return (BaseEffectValueInfo) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
}
